﻿/*
   Open Intel 
   Copyright © 2011 – ISC. All Rights Reserved.
*/

using Caliburn.Micro;

namespace OI.ViewModels
{
    // The DataGrid style used throughout OI fires certain messages we always need to handle
    public class DataGridScreenViewModelBase : Screen
    {
        public bool OnSortColumn { get; private set; }

        // row enter/leave events (not used here)
        public virtual void GridRowMouseEnter(object item)
        {
        }
        public virtual void GridRowMouseLeave(object item)
        {
        }

        // deal with issue where clicking a sort column causes a row selection
        public void SortColMouseEnter()
        {
            OnSortColumn = true;
        }
        public void SortColMouseLeave()
        {
            OnSortColumn = false;
        }
    }
}
